package com.sishu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sishu.pojo.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface OptionsMapper extends BaseMapper<Options> {

    // 根据问题ID查询选项表
    @Select("SELECT * FROM options WHERE question_id = #{questionId}")
    List<Options> selectOptionsByQuestionId(Integer questionId);

}
